<!DOCTYPE html>
<html lang="en">
<head>
    <title>京伦内容管理系统</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css" />
    <load href="__PUBLIC__/bootstrap/js/jquery.min.js" />
    <load href="__PUBLIC__/bootstrap/js/bootstrap.min.js" />
</head>
<body>

<!-- header -->
<include file="Public:header" />

<div class="row">
    <!-- left -->
    <include file="Content:left" />

    <div class="col-md-8" style="padding-top: 70px;">
        <div class="container">
            <ol class="breadcrumb">
                <li><a href="#">Home</a></li>
                <li><a href="#">Content</a></li>
                <li><a href="#">{$pagetitle}</a></li>
                <li class="active">[{:get_model_by_id($model_id)}] 属性列表(不含继承属性)</li>
            </ol>
        </div>

        <div class="actions clearfix">
            <div class="pull-left">
                <a href="{:U('Attribute/add?model_id='.$model_id)}"><button type="button" class="btn  btn-primary">添加</button></a>
            </div>
        </div>

        <div class="table-bordered">
            <table class="table">
                <tr class="active">
                    <th class="">编号</th>
                    <th class="">字段</th>
                    <th class="">名称</th>
                    <th class="">数据类型</th>
                    <th class="">操作</th>
                </tr>
                <notempty name="_list">
                    <volist name="_list" id="vo">
                        <tr>
                            <td>{$vo.id} </td>
                            <td>{$vo.name}</td>
                            <td><a data-id="{$vo.id}" href="{:U('Attribute/edit?id='.$vo['id'])}">{$vo.title}</a></td>
                            <td><span>{:get_attribute_type($vo['type'])}</span></td>
                            <td><a href="{:U('Attribute/edit?id='.$vo['id'])}">编辑</a>
                                <a class="confirm ajax-get" href="{:U('Attribute/remove?id='.$vo['id'])}">删除</a>
                            </td>
                        </tr>
                    </volist>
                    <else/>
                    <td colspan="5" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </table>
        </div>

    </div>
</div>





</body>
</html>
